<!DOCTYPE html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
    <li v-for="item in items">
        {{ item }}
    </li>
</div>

<script src="vue.js"></script>

<script>
    var vm = new Vue({
        el: '#app',
        props:['item'],
        data: {
            items: [{message: '狂神说Java'}, {message: '狂神说前端'}]
        }
    });
</script>
</body>

</html>